From 0ef6c3afedf4b0eb100077169ff281cd0fd313d7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 19 Feb 2019 00:32:35 -0500 Subject: [PATCH] search entry: Add a tooltip to th clear icon Similar to what we do for the caps-lock warning in the password entry. Closes #1483 --- gtk/gtksearchentry.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c index b4c47f4c71..a73e32963d 100644 --- a/gtk/gtksearchentry.c +++ b/gtk/gtksearchentry.c @@ -505,6 +505,7 @@ gtk_search_entry_init (GtkSearchEntry *entry) g_signal_connect (priv->entry, "activate", G_CALLBACK (activate_cb), entry); priv->icon = gtk_image_new_from_icon_name ("edit-clear-symbolic"); + gtk_widget_set_tooltip_text (priv->icon, _("Clear entry")); gtk_container_add (GTK_CONTAINER (priv->box), GTK_WIDGET (priv->icon)); gtk_widget_hide (priv->icon); -- 2.30.2